import { xpHttp as http } from '@/utils/http/axios';

export function login(data: any) {
  return http.request(
    {
      url: '/auth/login',
      method: 'post',
      data,
    },
    {
      isTransformResponse: false,
    }
  );
}

// 获取用户信息
export const getCurrentUserInfo = () => {
  return http.request({
    url: '/auth/getCurrentUser',
    method: 'get',
  });
};
